package com.astrofizzbizz.raspberrypicamera.client;

import com.google.gwt.user.client.Command;

public class MainMenuActionListeners implements Command
{
	RaspberryPiCamera entryPoint;
	String actionCommand;
	
	public MainMenuActionListeners(RaspberryPiCamera entryPoint, String actionCommand)
	{
		this.actionCommand = actionCommand;
		this.entryPoint = entryPoint;
	}
	@Override
	public void execute() 
	{
		if (actionCommand.equals("Help.About"))
		{
			String message = "StoneEdge III " + entryPoint.getVersion() + "\n" + "Last Updated " + entryPoint.getVersionDate();
			entryPoint.getMessageDialog().setMessage("About", message);
		}
		if (actionCommand.equals("Help.Contact"))
		{
			String message = "Program written by:";
			message = message + "\n          Dave McGinnis";
			message = message + "\n          email: dmcginnis427@gmail.com";
			message = message + "\n          phone: 630-457-4205";
			entryPoint.getMessageDialog().setMessage("Contact", message);
		}
		if (actionCommand.equals("Lock.Change Lock"))
		{
//			stoneEdge3.lockDialog.showDialog();
		}
	}

}
